/**
 * Created by zido on 2017/5/30 0030.
 */

import React from 'react'
import {
  browserHistory,
  Router
} from 'react-router'
import PropTypes from 'prop-types'
import {
  Provider
} from 'react-redux'

export default class App extends React.Component {
  shouldComponentUpdate() {
    return false
  }
  render() {
    const store = this.props.store
    return (
      <Provider store={store}>
        <div>
          <Router history={browserHistory} children = {this.props.routes}/>
        </div>
      </Provider>
    )
  }
}

App.propTypes = {
  store: PropTypes.object.isRequired,
  routes: PropTypes.object.isRequired,
}